Class B Diagnostics Demo with Watchdog Timer
-------------------------------------------------

This demonstration project consolidates all Class B diagnostic routines into a single application, utilizing the Watchdog Timer (WDT) and dedicated LEDs to indicate diagnostic success or failure.

Software Requirements:
IDE: MPLAB X v6.25 or later
Compiler: XC-DSC v3.31 or later

Hardware Requirements:
Development Board: Curiosity Development Board (EV74H48A)
Microcontroller Module: dsPIC33AK512MPS512 (EV80L65A) DIM

Hardware Pin Connections On Curiosity Development Board:
For ADC
	P38 to P48
For GPIO
	P43 to P94
	P6 to P23
	P4 to P21
	P25 to P92
	P31 to P33


Description:
1)Startup WDT Check:
	On power-up, the application checks the Watchdog Timer reset status bit. If a WDT reset is detected, LED2 will illuminate and the system will halt.

2)Initialization:
	The microcontroller is initialized, and the Watchdog Timer is enabled.

3)Initial Diagnostics:
	All module diagnostics are executed at startup. If any diagnostic fails, LED1 will illuminate and the system will wait for a Watchdog reset.

4)Watchdog Reset:
	After each module diagnostic, the Watchdog Timer is cleared to prevent unintended resets.

5)Transition to Main Application:
	Upon successful completion of all diagnostics, the application proceeds to execute the main tasks.

6)Periodic/On-Demand Diagnostics:
	During normal operation, module diagnostics are performed periodically or on demand. If a failure is detected, LED1 will illuminate and the system will wait for a Watchdog reset.

7)Success Indication:
	LED0 will illuminate after all diagnostics have been successfully completed.
	
Failure Sequence -> Power On -> LED1 -> (after wdt delay) -> LED2
Pass Sequence -> Power On -> LED0 